home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000024_news@newsmaster….columbia.edu _Sun May 3 14:10:32 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA26956
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 3 May 1998 14:10:31 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA23432
  7.     for kermit.misc@watsun; Sun, 3 May 1998 14:10:31 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Environment Variable Question
  12. Date: 3 May 1998 18:10:25 GMT
  13. Organization: Columbia University
  14. Lines: 22
  15. Message-ID: <6iibuh$pp5$1@apakabar.cc.columbia.edu>
  16. References: <6ii9gt$61j@bgtnsc03.worldnet.att.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8675
  19.  
  20. In article <6ii9gt$61j@bgtnsc03.worldnet.att.net>,
  21. Bernie  <bfb@worldnet.att.net> wrote:
  22. : Is it possible to set korn shell environment variables
  23. : from within a c-kermit command file?
  24. : For example:
  25. : define \%a FILE1
  26. : define \%b FILE2
  27. : #run F2=\%b; export F2
  28. : run /bin/echo F2=\%b; export F2
  29. : #run set F2=\%b
  30. Yes, it is possible to set them, but only in the inferior
  31. shell that you have started by the RUN command.  As soon as
  32. it exits, they disappear.  A program can not affect its
  33. superiors in the process tree.  The shell "set" and "export" 
  34. comands only affect the current process and/or its children.
  35. UNIX rules.  Contrast with, say, VMS logical names.
  36.  
  37. - Frank